package com.freework.util.excel.read;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;

import javax.xml.bind.JAXBException;

import com.alibaba.fastjson.JSON;
import com.freework.sys.table.vo.SysDiccolumnVO;
import com.freework.util.XMLUtil;
import com.freework.util.excel.read.service.ReadExcel;
import com.freework.util.excel.read.service.rowToObject.ValueFormat;
import com.freework.util.excel.read.vo.ColVO;
import com.freework.util.excel.read.vo.ObjectFactory;
import com.freework.util.excel.read.vo.SheetVO;

public class Test {

	public class ValueFormat1 implements ValueFormat {

		public Object getValue(Object obj, String value, ColVO vo) {
			return "";
		}

		public Object getValue(Object obj, double value, ColVO vo) {
			// TODO Auto-generated method stub
			return "";
		}
	};

	public static void main(String args[]) {

		try {
			InputStream in = new FileInputStream("c:\\eee.xls");

			List<SysDiccolumnVO> list = ReadExcel.getData("F:/eclipse-jee-galileo-SR1-win32/workspace2/freework/src/com/freework/util/excel/read/aaa.xml",SysDiccolumnVO.class, in);
			System.out.println(JSON.toJSONString(list));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (JAXBException e) {
			e.printStackTrace();
		}

	}
}
